package cn.woblog.android.httputils;

import java.io.InputStream;

import cn.woblog.android.httputils.callback.impl.StringCallback;
import cn.woblog.android.httputils.domain.Request;
import cn.woblog.android.httputils.utils.Logs;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		Request request = new Request("http://www.baidu.com");
		request.addHeader("Content-Type", "*/*");
		// request.setCallBack(new StringCallback() {
		//
		// @Override
		// public void onSuccess(String object) {
		// Logs.d((String) object);
		// }
		//
		// @Override
		// public void onFailure(Exception exception) {
		// exception.printStackTrace();
		// }
		//
		// });
		request.execute();
	}

}
